package com.zksb.entity;

import java.io.Serializable;

/**
 * 购物车类
 */
public class Goods implements Serializable {

    private static final long serialVersionUID = -2201544827356696407L;
    private int id; //商品id
    private String name;//商品名
    private double price;//单价
    private double amount;//总价
    private int quantity;//商品数量
    private String icon;//商品图片

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
